<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
	<link href="<c:url value='/images/css/style.css' />" rel="stylesheet" type="text/css" />
	<title>用户注册</title>
	<script language="javascript" src="<c:url value='/js/calendar.js' />"></script>
	<script type="text/javascript" src="<c:url value='/js/user.js' />"></script>
</head>
<body>
<div id="container" />
  <div id="globalHeader">
  <p id="logo"><a href="#"><img src="<c:url value='/images/logo.gif' />" alt="logo" /></a></p>
  <ul id="globalTopNav">
      <li><a href="<c:url value='/User_Reg.jsp' />" >用户注册</a></li>
      <li><a href="<c:url value='/User_Login.jsp' />" >用户登陆</a></li>
      <li><a href="<c:url value='/User/Change_Info.jsp' />" >会员中心</a></li>
      <li><a href="<c:url value='/Cart.jsp' />" >购物车</a></li>
      <li><a href="<c:url value='/User/Show_Orderlist.jsp' />" >查看订单</a></li>
      <li id="globalTopNavLast"><a href="<c:url value='/Admin_Login.jsp' />" >后台管理</a></li>
      <li id="globalTopNavRight">&nbsp;</li>
  </ul>
</div>
<div id="globalNav">
  <ul>
    <li id="currentPage"><a href="<c:url value='/Show.jsp' />">首页</a></li>
    <li><a href="<c:url value='/User/Change_Info.jsp' />" >会员中心</a></li>
    <li><a href="<c:url value='/User/Show_Orderlist.jsp' />" >查看订单</a></li>
  </ul>
</div>
<div id="urHere" class="globalModule globalFrame" style="margin-top:10px">
    <h3>当前位置: <a href="<c:url value='/Show.jsp' />">首页</a> <code>&gt;</code> 用户中心</h3>
</div>
<div id="globalLogin" class="globalModule globalFrame">
              <h3>会员注册</h3>
              <form name="regUser" action="<c:url value='/servlet/RegServlet' />" method="post" onsubmit="return checkRegForm();">
              <ul class="regItem">
              <li>
              	用&nbsp;&nbsp;户&nbsp;&nbsp;名:
              	<input name="suser" type="text" class="textInput" maxlength="30" onblur="is_registered(this.value);" />
              	<span id="username">(必填)</span>
              </li>
              <li>
              	密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:
              	<input id="spwd" name="spwd" type="password" class="textInput" maxlength="30" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" />
              	<span id="password">(必填)</span>
              </li>
              <li>
                  <ol>密码强度:</ol>
                  <ul id="pwd_lower" >弱</ul>
                  <ul id="pwd_middle" >中</ul>
                  <ul id="pwd_high" >强</ul>
              </li>
              <li>
              	确认密码:
                <input name="spwd2" type="password" class="textInput" maxlength="30" onblur="check_conform_password(this.value);" />
                <span id="password2">(必填)</span>
              </li>
              <li>
              	性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:
                <input name="ssex" type="radio" class="radioItem" value="男" checked="checked" />男
                <input name="ssex" type="radio" class="radioItem" value="女" />女              </li>
              <li>
              	真实姓名:
                <input name="sname" type="text" class="textInput" maxlength="30" />
              </li>
              <li>
              	出生日期:
                <input name="dbirth" type="text" class="textInput" maxlength="30" onfocus="show_cele_date(this,'','',this)" onblur="checkBirth(this.value);" />
				<span id="dbirthcheck">(必填)</span>
              </li>
              <li>
             	电子邮箱:
                <input name="semail" type="text" class="textInput" maxlength="30" onblur="checkEmail(this.value);" />
                <span id="emailcheck">(必填)</span>              </li>
              <li>
              	电话号码:
                <input name="sphone" type="text" class="textInput" maxlength="30" onblur="checkPhone(this.value);" />
                <span id="phonecheck">(必填)</span>
              </li>
              <li>
              	地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:
                <input name="saddress" type="text" class="textInput" maxlength="300" />
              </li>
              <li>
              	邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编:
                <input name="scode" type="text" class="textInput" maxlength="6" onblur="checkCode(this.value);"/>
                <span id="codecheck">(必填)</span>
              </li>
			  <li>
				验&nbsp;&nbsp;证&nbsp;&nbsp;码:
				<input name="rand" type="text" class="textInput2" size="4" maxlength="4" />&nbsp;&nbsp;
				<img src="<c:url value='inc/rand.jsp' />" onclick="this.src='<c:url value='/inc/rand.jsp' />'" class="imgrand" />&nbsp;看不清?请点击图片更换
			  </li>
              <li>
              	<input name="submit" type="submit" value="确定注册" class="btnStyle" />&nbsp;&nbsp;
                <input name="reset" type="reset" value=" 重 置 " class="btnStyle" />
                <input type="hidden" name="fromPage" value="/User_Reg.jsp" />
                <input type="hidden" name="msg" value="/msg.jsp" />
              </li>
              <li><a href="<c:url value='/User_Login.jsp' />">&gt;&gt;我已有账号，我要登录</a></li>
            </ul>
            </form>
            </div>
<div id="globalFooter">
<div id="footerLine"><img src="<c:url value='/images/footer_line.gif' />" /></div>
    <p id="footerNav">
      <a href="#" >免责条款</a> 
        |
      <a href="#" >隐私保护</a> 
        |
      <a href="#" >咨询热点</a> 
        |
      <a href="#" >联系我们</a> 
        |
      <a href="#" >公司简介</a> 
        |
      <a href="#" >预留功能</a> 
        |
      <a href="<c:url value='/Admin_Login.jsp' />" >后台管理</a> 
    </p>
</div>
  <script language="javascript" >
  <!--
        var msg_username_empty = "<img src='images/check_error.gif'  /> 用户名不能为空。";
		var msg_username_shorter = "<img src='images/check_error.gif'  /> 对不起，您输入的用户名小于3个字符, 请输入一个较长的用户名。";
		var msg_username_invalid = "<img src='images/check_error.gif'  /> 用户名非法,用户名只能包含英文字母。";
		var msg_password_empty = "<img src='images/check_error.gif'  /> 登录密码不能为空。";
        var msg_password_shorter = "<img src='images/check_error.gif'  /> 登录密码不能少于 3 个字符。";
        var msg_confirm_password_invalid = "<img src='images/check_error.gif'  /> 两次输入的密码不一致，请检查后重试。 ";
		var msg_birth_empty = "<img src='/ycnShop/images/check_error.gif'  /> 出生日期不能为空";
        var msg_email_empty = "<img src='images/check_error.gif'  /> 邮件地址不能为空";
        var msg_email_format = "<img src='images/check_error.gif'  /> Email 地址无效，请返回重新填写。";
		var msg_phone_empty = "<img src='images/check_error.gif'  /> 电话号码不能为空。";
		var msg_phone_format = "<img src='images/check_error.gif'  /> 电话号码格式错误,请返回重新填写。";
		var msg_code_empty = "<img src='images/check_error.gif'  /> 邮编不能为空。";
		var msg_code_format = "<img src='images/check_error.gif'  /> 邮编只能是数字,必须是6位数。";
		var msg_can_rg = "<img src='images/check_right.gif'  />";
		var username_empty = "用户名不能为空。";
		var username_shorter = "用户名长度不能少于 3 个字符。";
		var username_invalid = "用户名只能是英文字母。";
		var password_empty = "登录密码不能为空。";
        var password_shorter = "登录密码不能少于 3 个字符。";
        var confirm_password_invalid = "两次输入密码不一致";
		var birth_empty = "出生日期不能为空";
        var email_empty = "Email地址不能为空";
        var email_format = "Email 地址无效";
		var phone_empty = "电话号码不能为空";
		var phone_format = "电话号码格式错误";
		var code_empty = "邮编不能为空";
		var code_format = "邮编只能是6位数字";
		var rand_msg = "验证码只能是4位数!"
	-->
  </script>
</body>
</html>
